package com.atguigu.gulimall.member.service;

import com.atguigu.common.vo.SocialUser;
import com.atguigu.gulimall.member.dto.MemberRegistDto;
import com.atguigu.gulimall.member.dto.UserLoginDto;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.member.entity.MemberEntity;

import java.util.Map;

/**
 * 会员
 *
 * @author gaozz
 * @email 1183823016@qq.com
 * @date 2022-11-03 23:10:40
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 用户注册
     * @param dto
     */
    void regist(MemberRegistDto dto);

    /**
     * 用户登录
     * @param dto
     */
    MemberEntity login(UserLoginDto dto);

    /**
     * 社交平台用户登录
     * @param socialUser
     * @return
     */
    MemberEntity oauthLogin(SocialUser socialUser);
}

